package com.mike.uaa.core;

import lombok.Getter;

/**
 * @author z
 */
public class RootGrantedAuthority implements GrantedAuthority {


    private static final long serialVersionUID = 1307404014065588750L;

    private final String role;
    @Getter
    private final String permission;


    public RootGrantedAuthority(String role, String permission) {
        this.role = role;
        this.permission = permission;
    }

    @Override
    public String getAuthority() {
        return this.role;
    }

}
